#pragma once
#include <iostream>

namespace log
{
    //日志等级
    enum Level
    {
        UNKNOW, //未知
        DEBUG, //调试
        INFO, //提示
        WARNNING, //警告
        ERROR, //错误
        FATAL, //致命
        OFF //关闭
    };

    class outLevel
    {
    public:
        static std::string toString(Level l)
        {
            switch(l)
            {
                case DEBUG: return "DEBUG";
                case INFO: return "INFO";
                case WARNNING: return "WARNNING";
                case ERROR: return "ERROR";
                case FATAL: return "FATAL";
                case OFF: return "OFF";
            }
            return "UNKNOW";
        }
    };
};
